/*
* // +-------------------------------------------------------------------------------------------------
* // |                 有你就好 [ 有节骨乃坚，无心品自端 ]     <http://encoding.wang>
* // +-------------------------------------------------------------------------------------------------
* // |                             独在异乡为异客         每逢佳节倍思亲
* // +-------------------------------------------------------------------------------------------------
* // |                 联系:   <707069100@qq.com>      <http://weibo.com/513778937>
* // +-------------------------------------------------------------------------------------------------
*/

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                   ErYang出品 属于小极品          共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------


package wang.encoding.mroot.service.system


import wang.encoding.mroot.common.service.BaseService
import wang.encoding.mroot.model.entity.system.RequestLog
import java.math.BigInteger

/**
 * 后台 请求日志 Service 接口
 *
 * @author ErYang
 */
interface RequestLogService : BaseService<RequestLog> {


    /**
     * 初始化新增 RequestLog 对象
     *
     * @param requestLog RequestLog
     * @return RequestLog
     */
    fun initSaveRequestLog(requestLog: RequestLog): RequestLog

    // -------------------------------------------------------------------------------------------------

    /**
     * Hibernate Validation 验证
     */
    fun validationRequestLog(requestLog: RequestLog): String?

    // -------------------------------------------------------------------------------------------------

    /**
     * 新增 请求日志
     *
     * @param requestLog RequestLog
     * @return ID  BigInteger
     */
    fun saveBackId(requestLog: RequestLog): BigInteger?

    // -------------------------------------------------------------------------------------------------

    /**
     * 清空记录
     */
    fun truncate(): Boolean

    // -------------------------------------------------------------------------------------------------

    /**
     * 定时任务删除
     *
     * @param size Int 数量
     */
    fun remove2QuartzJob(size: Int): Boolean

    // -------------------------------------------------------------------------------------------------

}

// -----------------------------------------------------------------------------------------------------

// End RequestLogService interface

/* End of file RequestLogService.kt */
/* Location: ./src/main/kotlin/wang/encoding/mroot/service/system/RequestLog.kt */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                           ErYang出品 属于小极品  O(∩_∩)O~~   共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
